<template>
	<view :class="bClass + ' ' + (disabled ? 'bg-main-disabled' :'')" :style="bStyle" class="bg-main main-btn" hover-class="bg-main-hover" @click="clickFn">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name:"main-button",
		props: {
			bClass: {
				type: String,
				default: ''
			},
			bStyle: {
				type: String,
				default: ''
			},
			disabled:{
				type:Boolean,
				default:false
			},
		},
		data() {
			return {
				
			};
		},
		methods: {
			clickFn() {
				if(this.disabled) return
				this.$emit('click')
			}
		},
	}
</script>

<style>

</style>